package cn.lwj.wsClient.init;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import org.apache.log4j.Logger;

public class initServlet implements ServletContextListener{
    private Logger log= Logger.getLogger(this.getClass());

    // 系统初始化执行方法
    public void contextDestroyed(ServletContextEvent e) {
        log.info("系统停止...");
    }

    public void contextInitialized(ServletContextEvent e) {
        try {
            System.out.println("哈哈哈哈哈哈哈哈哈哈哈初始化");
        } catch (Exception e1) {
            e1.printStackTrace();
        } finally{
            log.info("系统初始化结束...");
        }

    }
}
